<?php

App::uses('AppModel', 'Model');

class Guest extends AppModel {
    
	public $order = "Guest.firstname ASC, Guest.surname ASC";
	
	public $validate = array(
        'firstname' => array('rule' => 'notEmpty', 'message' => STR_REQUIRED_FIELD),
        'surname' => array('rule' => 'notEmpty', 'message' => STR_REQUIRED_FIELD)
	);
	
	public $virtualFields = array(
        'name' => 'CONCAT(Guest.firstname, " ", Guest.surname)'
	);
	
}

?>